package com.fuego.creditsystemcommodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.dto.Result;
import org.example.entity.ActivityOrder;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IActivityOrderService extends IService<ActivityOrder> {
    Result activityInfo(Long ActivityId, Long userId, LocalDateTime activityStartTime);
    void createActivityOrder(ActivityOrder activityOrder,LocalDateTime activityStartTime);

    Result queryAllOrders(Long userId);

    @Transactional
    Result refund(Long orderId);
}
